﻿using System;
using System.Collections.Generic;
using Autodesk.Revit.DB;
using YJKArchMethodLibrary.Utils;

namespace YJKElementFinish.ColumnSurface.DataDefinition
{
	public class ProfileInfo
	{
		public List<XYZ> Loop
		{
			get
			{
				return this.m_Loop;
			}
			set
			{
				this.m_Loop = value;
			}
		}

		public ProfileInfo(ProfileInfo profile)
		{
			this.m_Loop = profile.m_Loop;
		}

		public ProfileInfo(List<XYZ> loop)
		{
			this.m_Loop = loop;
		}

		public bool IsInside(XYZ pt, bool includeEdge = true)
		{
			int num = Geometry.PointInPloygon(this.m_Loop, pt, 0.0001, 1E-09);
			return num == 1;
		}

		private List<XYZ> m_Loop = new List<XYZ>();
	}
}
